package com.amnc.client;

import com.amnc.client.threadPackage.AbortionThread;
import com.amnc.client.threadPackage.BcsThread;
import com.amnc.client.threadPackage.BodyTemperatureThread;
import com.amnc.client.threadPackage.CalvingThread;
import com.amnc.client.threadPackage.ChangeGroupThread;
import com.amnc.client.threadPackage.DryThread;
import com.amnc.client.threadPackage.EntryThread;
import com.amnc.client.threadPackage.EntryToParkingThread;
import com.amnc.client.threadPackage.ExitFromParkingThread;
import com.amnc.client.threadPackage.ExitThread;
import com.amnc.client.threadPackage.GeneticThread;
import com.amnc.client.threadPackage.HeatThread;
import com.amnc.client.threadPackage.HeightThread;
import com.amnc.client.threadPackage.InseminationThread;
import com.amnc.client.threadPackage.LogStallThread;
import com.amnc.client.threadPackage.MilkTestThread;
import com.amnc.client.threadPackage.MorphologicalThread;
import com.amnc.client.threadPackage.NotInseminationThread;
import com.amnc.client.threadPackage.PDMinusThread;
import com.amnc.client.threadPackage.PDPlusThread;
import com.amnc.client.threadPackage.PDUnclearThread;
import com.amnc.client.threadPackage.WeightThread;

public class DifSendMain {

	public static void main(String[] args) {
		//移动文件线程 
		/**
		 * 要有判断文件是否是完整的，例如，“D:\Source\hibernateTest 下载为完成便移动过来”
		 */
//		MoveFilesThread moveFilesThread=new MoveFilesThread();
//		Thread move=new Thread(moveFilesThread);
//		move.start();
		
		/**
		 * 启动事件发送线程
		 */
//		AbortionThread abortionThread=new AbortionThread();
//		Thread abortionThread2=new Thread(abortionThread);
//		abortionThread2.start();
//			
		//所有线程共享变量
		String fileFlagString="processing";
		
		String sendFilesPath="C:\\AFIFARM\\SAVEFILE\\dif数据";
		String abortionString="流产";
		

		
		
//		AbortionThread abortionThread=new AbortionThread(sendFilesPath, abortionString, fileFlagString, 6);
//		Thread abortionThread1=new Thread(abortionThread);
//		abortionThread1.start();
//		
		String bcsString="体况评分";
		BcsThread bcsThread=new BcsThread(sendFilesPath, bcsString, fileFlagString, 5);
		Thread bcsThread1=new Thread(bcsThread);
		bcsThread1.start();
		
//		
//		String temperatureString="体温";
//		BodyTemperatureThread bodyTemperatureThread=new BodyTemperatureThread(sendFilesPath, temperatureString, fileFlagString, 5);
//		Thread bodytempratureThread1=new Thread(bodyTemperatureThread);
//		bodytempratureThread1.start();
//		
//		
//		String calvingString="产犊";
//		CalvingThread calvingThread=new CalvingThread(sendFilesPath, calvingString, fileFlagString, 6);
//		Thread calvingThread2=new Thread(calvingThread);
//		calvingThread2.start();
//		
//		String changgrpString="改变组" ;
//		ChangeGroupThread changeGroupThread=new ChangeGroupThread(sendFilesPath, changgrpString, fileFlagString, 6);
//		Thread changegrpThread=new Thread(changeGroupThread);
//		changegrpThread.start();
//		
//		String dryString="干奶";
//		DryThread dryThread=new DryThread(sendFilesPath, dryString, fileFlagString, 6);
//		Thread drytThread2=new Thread(dryThread);
//		drytThread2.start();
//		
//		String entryString="入群";
//		EntryThread entryThread=new EntryThread(sendFilesPath, entryString, fileFlagString, 25);
//		Thread enThread1=new Thread(entryThread);
//		enThread1.start();
//		
//		String entryparkingString="1隔离";
//		EntryToParkingThread entryToParkingThread=new EntryToParkingThread(sendFilesPath, entryparkingString, fileFlagString, 5);
//		Thread entryparkingThread1=new Thread(entryToParkingThread);
//		entryparkingThread1.start();
//		
//		String exitString="离群";
//		ExitThread exitThread=new ExitThread(sendFilesPath, exitString, fileFlagString, 11);
//		Thread exiThread1=new Thread(exitThread);
//		exiThread1.start();
//		
//		
//		String exitfromparkingString="1退出隔离";
//		ExitFromParkingThread exitFromParkingThread=new ExitFromParkingThread(sendFilesPath, exitfromparkingString, fileFlagString, 5);
//		Thread exitfromparkThread1=new Thread(exitFromParkingThread);
//		exitfromparkThread1.start();
//		
//		String geneticString="遗传";
//		GeneticThread geneticThread=new GeneticThread(sendFilesPath, geneticString, fileFlagString, 17);
//		Thread genThread1=new Thread(geneticThread);
//		genThread1.start();
//		
//		String heatString="发情";
//		HeatThread heatThread=new HeatThread(sendFilesPath, heatString, fileFlagString, 6);
//		Thread heatThread2=new Thread(heatThread);
//		heatThread2.start();
//		
//		String heightString="体高";
//		HeightThread heightThread=new HeightThread(sendFilesPath, heightString, fileFlagString, 4);
//		Thread heighThread1=new Thread(heightThread);
//		heighThread1.start();
//		
//		String inseminationString="输精";
//		InseminationThread inseminationThread=new InseminationThread(sendFilesPath, inseminationString, fileFlagString, 9);
//		Thread inThread=new Thread(inseminationThread);
//		inThread.start();
//		
//		String logstallString="Station";
//		LogStallThread logStallThread=new LogStallThread(sendFilesPath, logstallString, fileFlagString, 11);
//		Thread logThread=new Thread(logStallThread);
//		logThread.start();
//		
//		
//		String milkString="牛奶";
//		MilkTestThread milkTestThread=new MilkTestThread(sendFilesPath, milkString, fileFlagString, 10);
//		Thread milkThread=new Thread(milkTestThread);
//		milkThread.start();
//		
//		String morphologicalString="体型";
//		MorphologicalThread morphologicalThread=new MorphologicalThread(sendFilesPath, morphologicalString, fileFlagString, 26);
//		Thread morptThread=new Thread(morphologicalThread);
//		morptThread.start();
//		
//		String notinString="不宜输精";
//		NotInseminationThread notInseminationThread=new NotInseminationThread(sendFilesPath, notinString, fileFlagString, 5);
//		Thread notinThread=new Thread(notInseminationThread);
//		notinThread.start();
//		
//		String pdpluString="妊检+";
//		PDPlusThread pdPlusThread=new PDPlusThread(sendFilesPath, pdpluString, fileFlagString, 6);
//		Thread pdplustThread=new Thread(pdPlusThread);
//		pdplustThread.start();
//		
//		String  pdminusString="1妊检- -";
//		PDMinusThread pdMinusThread=new PDMinusThread(sendFilesPath, pdminusString, fileFlagString, 4);
//		Thread pdmitThread=new Thread(pdMinusThread);
//		pdmitThread.start();
//		
//		String pdunclear="1妊检-+ -";
//		PDUnclearThread pdUnclearThread=new PDUnclearThread(sendFilesPath, pdunclear, fileFlagString, 4);
//		Thread pduThread=new Thread(pdUnclearThread);
//		pduThread.start();
//		
//		String weightString="体重";
//		WeightThread weightThread=new WeightThread(sendFilesPath, weightString, fileFlagString, 5);
//		Thread weiThread=new Thread(weightThread);
//		weiThread.start();
//		
//		
//		
//		
		
		
		
		
	}

}
